package com.sh.dc.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 制品源表
 * </p>
 *
 * @author zhenlan
 * @since 2024-07-10
 */
@Data
  @TableName("t_product_source")
public class ProductSource implements Serializable {

    private static final long serialVersionUID = 1L;

      @TableId(value = "id", type = IdType.AUTO)
      private Long id;

    @TableField("name")
    private String name;

    @TableField("name_en")
    private String nameEn;

    @TableField("description")
    private String description;

    @TableField("registry")
    private String registry;

    @TableField("namespace")
    private String namespace;

      /**
     * 需要认证  0:不需要   1:需要认证
     */
      @TableField("auth")
    private Integer auth;

      /**
     * 是否删除   1:已删除   0:未删除
     */
      @TableField("deleted")
    private Integer deleted;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField("create_time")
    private Date createTime;

    @TableField("create_by")
    private String createBy;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField("update_time")
    private Date updateTime;

    @TableField("update_by")
    private String updateBy;

    @TableField("username")
    private String username;

    @TableField("password")
    private String password;
}
